#ifndef EXTI_H
#define EXTI_H

#include "SYSTEM/sys/sys.h"

#define KEY0_INT_IRQn                     EXTI4_IRQn
#define KEY0_INT_IRQHandler               EXTI4_IRQHandler
#define KEY1_INT_IRQn                     EXTI3_IRQn
#define KEY1_INT_IRQHandler               EXTI3_IRQHandler
#define KEY2_INT_IRQn                     EXTI2_IRQn
#define KEY2_INT_IRQHandler               EXTI2_IRQHandler
#define WKUP_INT_IRQn                     EXTI0_IRQn
#define WKUP_INT_IRQHandler               EXTI0_IRQHandler

void extix_init(void);
void KEY0_INT_IRQHandler(void);
void KEY1_INT_IRQHandler(void);
void KEY2_INT_IRQHandler(void);
void WKUP_INT_IRQHandler(void);
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_PIN);

#endif
